package com.system.domin;

public class MemoUser {
    private String email;
    private String name;
    private Integer historicalList;
    private Integer allTopics;
    private Integer unread;

    public MemoUser() {
    }

    // 第一次用户调佣这个构造器
    public MemoUser(String email, String name)
    {
        this.email = email;
        this.name = name;
        this.historicalList = 0;
        this.allTopics = 0;
        this.unread = 0;
    }
    public MemoUser(String email, String name, Integer historicalList, Integer allTopics,Integer unread) {
        this.email = email;
        this.name = name;
        this.historicalList = historicalList;
        this.allTopics = allTopics;
        this.unread = unread;
    }

    public String getEmail() {
        return email;
    }

    public String getName() {
        return name;
    }

    public Integer getUnread() {
        return unread;
    }

    public void setUnread(Integer unread) {
        this.unread = unread;
    }

    public Integer getHistoricalList() {
        return historicalList;
    }

    public Integer getAllTopics() {
        return allTopics;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setHistoricalList(Integer historicalList) {
        this.historicalList = historicalList;
    }

    public void setAllTopics(Integer allTopics) {
        this.allTopics = allTopics;
    }

    @Override
    public String toString() {
        return "MemoUser{" +
                "email='" + email + '\'' +
                ", name='" + name + '\'' +
                ", historicalList=" + historicalList +
                ", allTopics=" + allTopics +
                '}';
    }
}
